var GameEvent = {};


GameEvent.dispatch = function (str, parameter) {
    cc.director.emit(str, parameter);
}
GameEvent.addCmd = function (str, callBack,thisobj) {
    cc.director.on(str, callBack,thisobj);
}
GameEvent.delCmd = function (str, parameter) {
    cc.director.on(str, parameter);
}

GameEvent.PLAYER_EVENT = "GameEvent.PLAYER_EVENT"//玩家行为事件


GameEvent.KEY = {
    NO:-1,
    LEFT:1,
    RIGHT:2,
    V:3,
    C:4,
    X:5,
   
},


















    window.GameEvent = GameEvent;